* {
  padding: 0;
  margin: 0;
  text-decoration: none;
  list-style: none;
}

.box {
  width: 100%;
  height: 100%;

  header {
    width: 100%;
    height: 69px;
    line-height: 69px;
    background: var(--bgcolor);
    border-bottom: 1px solid #000;

    .box {
      display: flex;
      width: 1200px;
      height: 100%;
      margin: 0 auto;
      align-items: center;

      img {
        width: 36px;
        height: 36px;
      }

      .nav {
        display: flex;
        width: 50%;
        margin-left: 5%;

        li {
          flex: 1;
          margin: 0;
        }

        a {
          color: var(--color);
        }

        a:hover {
          color: red;
        }
      }

      .navrigth {
        display: flex;
        width: 30%;
        height: 100%;
        justify-content: space-evenly;
        align-items: center;
      }
    }
  }

  main {
    display: flex;
    width: 100%;
    height: auto;
    overflow-y: scroll;
    background-color: rgb(120 86 86);
    justify-content: center;
    align-items: center;
    background-color: var(--mainbg);
  }
}

footer {
  width: 100%;
  height: 100px;
  margin-top: 24px;
  border-top: 2px solid #ccc;
  background-color: #282c35;
}

.search {
  width: 75%;
  margin: 0 auto;

  .sernav {
    display: flex;
    width: 100%;
    font-size: 32px;
    line-height: 80px;
    justify-content: space-between;

    span {
      color: #ccc;
    }
  }

  .serinp {
    display: flex;
    width: 100%;

    input {
      width: 95%;
      height: 32px;
      border: 2px solid #ccc;
    }

    input:hover {
      border-color: rgb(247 12 12);
    }

    svg {
      flex: 1;
      height: 32px;
      margin-left: -1px;
      border-top: 2px solid #ccc;
      border-right: 2px solid #ccc;
      border-bottom: 2px solid #ccc;
    }
  }
}
//中间路由
.centerbox {
  width: 100%;
  height: 100%;
  background: var(--bigcolor);

  .centercon {
    display: flex;
    width: 1000px;
    height: 100%;
    padding: 20px 0;
    margin: 0 auto;
    justify-content: space-around;

    .centerleft {
      width: 600px;
      height: 850px;
      padding: 10px;
      color: var(--color);
      background: var(--bgcolor) !important;

      span {
        color: red;
      }

      li {
        font-weight: bold;
        line-height: 40px;
      }

      b {
        font-weight: normal;
        color: #ccc;
      }
    }

    .centerright {
      width: 300px;
      height: 850px;
      padding: 10px;

      .topbox {
        width: 300px;
        padding: 10px;
        margin-bottom: 50px;
        color: var(--color);
        background: var(--bgcolor) !important;

        li {
          font-size: 13px;
          line-height: 30px;
        }

        span {
          color: #ccc;
        }

        h4 {
          line-height: 35px;
          border-bottom: 1px solid #ccc;
        }
      }

      .botbox {
        width: 300px;
        height: 400px;
        padding: 10px;
        color: var(--color);
        background: var(--bgcolor) !important;

        li {
          display: flex;
          font-size: 13px;
          line-height: 35px;
          justify-content: space-between;
        }

        h4 {
          line-height: 35px;
          border-bottom: 1px solid #ccc;
        }
      }
    }
  }
}

//头部右侧路由
.knowledgebooks {
  display: flex;
  width: 1200px;
  height: 100%;
  margin: 0 auto;
  background: var(--bigcolor);

  .centerright {
    width: 300px;
    height: 850px;
    padding: 10px;

    .topbox {
      width: 300px;
      height: 250px;
      padding: 10px;
      margin-bottom: 50px;
      color: var(--color);
      background: var(--bgcolor) !important;

      li {
        font-size: 13px;
        line-height: 30px;
      }

      span {
        color: #ccc;
      }

      h4 {
        line-height: 35px;
        border-bottom: 1px solid #ccc;
      }
    }
  }

  .botbox {
    width: 300px;
    height: 400px;
    padding: 10px;
    color: var(--color);
    background: var(--bgcolor) !important;

    li {
      display: flex;
      font-size: 13px;
      line-height: 35px;
      justify-content: space-between;
    }

    h4 {
      line-height: 35px;
      border-bottom: 1px solid #ccc;
    }
  }

  .knowleft {
    float: left;
    width: 700px;
    height: 100%;
    margin: 20px;
    color: var(--color);
    background: var(--bgcolor) !important;

    .cen {
      width: 100%;
      line-height: 50px;
      text-align: center;
      background-color: #fff;
    }

    .knowheaderbox {
      width: 100%;
      height: 100%;
      margin-bottom: 24px;

      .knowheaderbox2 {
        width: 95%;
        height: 100%;
        margin-left: 15px;
      }
    }

    .knowheaderboxheader {
      width: 100%;
      height: 100%;
      line-height: 30px;
    }

    .knowheaderboxmain {
      width: 100%;
      height: 100%;
      margin-top: 10px;

      img {
        width: 240px;
        height: 100%;
        margin-top: 10px;
      }
    }
  }

  footer {
    width: 100%;
    height: 15vh;
    margin-top: 5vh;
    background-color: #000;
  }
}

//详情页
.detail {
  display: flex;
  width: 1200px;
  height: 100%;
  margin: 0 auto;
  justify-content: space-around;

  .detailleft {
    width: 700px;

    > div {
      width: 100%;
      height: 100%;
    }

    img {
      width: 700px;
    }
  }

  .detailright {
    width: 300px;

    .detailtop {
      width: 100%;
      height: 250px;
      padding: 5px;
      margin-bottom: 30px;
      background: #fff;

      li {
        line-height: 30px;
      }
    }

    .detailbot {
      width: 100%;
      height: 400px;
      padding: 5px;
    }

    h3 {
      line-height: 30px;
    }
  }
}
